package com.scm.bean;

import java.sql.Timestamp;
import java.util.HashSet;
import java.util.Set;

/**
 * Saleorder entity. @author MyEclipse Persistence Tools
 */

public class Saleorder implements java.io.Serializable {

	// Fields

	private String saleOrderId;
	private Vehicle vehicle=new Vehicle();
	private Dealer dealer;
	private String addExplanation;
	private Timestamp orderDate;
	private String deliveryAddress;
	private Set addinfos = new HashSet(0);

	// Constructors

	/** default constructor */
	public Saleorder() {
	}

	/** minimal constructor */
	public Saleorder(Vehicle vehicle, Dealer dealer, String addExplanation,
			Timestamp orderDate, String deliveryAddress) {
		this.vehicle = vehicle;
		this.dealer = dealer;
		this.addExplanation = addExplanation;
		this.orderDate = orderDate;
		this.deliveryAddress = deliveryAddress;
	}

	/** full constructor */
	public Saleorder(Vehicle vehicle, Dealer dealer, String addExplanation,
			Timestamp orderDate, String deliveryAddress, Set addinfos) {
		this.vehicle = vehicle;
		this.dealer = dealer;
		this.addExplanation = addExplanation;
		this.orderDate = orderDate;
		this.deliveryAddress = deliveryAddress;
		this.addinfos = addinfos;
	}

	// Property accessors

	public String getSaleOrderId() {
		return this.saleOrderId;
	}

	public void setSaleOrderId(String saleOrderId) {
		this.saleOrderId = saleOrderId;
	}

	public Vehicle getVehicle() {
		return this.vehicle;
	}

	public void setVehicle(Vehicle vehicle) {
		this.vehicle = vehicle;
	}

	public Dealer getDealer() {
		return this.dealer;
	}

	public void setDealer(Dealer dealer) {
		this.dealer = dealer;
	}

	public String getAddExplanation() {
		return this.addExplanation;
	}

	public void setAddExplanation(String addExplanation) {
		this.addExplanation = addExplanation;
	}

	public Timestamp getOrderDate() {
		return this.orderDate;
	}

	public void setOrderDate(Timestamp orderDate) {
		this.orderDate = orderDate;
	}

	public String getDeliveryAddress() {
		return this.deliveryAddress;
	}

	public void setDeliveryAddress(String deliveryAddress) {
		this.deliveryAddress = deliveryAddress;
	}

	public Set getAddinfos() {
		return this.addinfos;
	}

	public void setAddinfos(Set addinfos) {
		this.addinfos = addinfos;
	}

}